#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	while (1)
	{
		int i = 0, j = 0,k = 0, t = 0, n = 0, x = 0;
		scanf("%d", &n);
		x = (n + 1) / 2;
		for (i = 1; i <= n; i++)
		{
			if (i <= x)
			{
				for (j = 1; j <= x - i; j++)
				{
					printf(" ");
				}
				for (k = 1; k <= 2 * i - 1; k++)
				{
					printf("*");
				}
			}
			else
			{
				for (j = 1; j <= i - x; j++)
				{
					printf(" ");
				}
				for (k = 1; k <= n - 2 * (i - x); k++)
				{
					printf("*");
				}
			}
			printf("\n");
		}
		printf("\n");
	}
	return 0;
}
